package com.design.behavior.mediator.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.behavior.mediator.cainiao
 * @ClassName: MediatorPatternDemo
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/11/23 0023 21:09
 */
public class MediatorPatternDemo {
    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("Hi! John!");
        john.sendMessage("Hello! Robert!");
    }
}
